package com.sofwin.controller;

import com.ruoyi.wms.api.domain.Supplier;
import com.sofwin.service.SupplierService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @packageName: com.sofwin.controller
 * @user: andyliu
 * @date: 2024/10/10 16:05
 * @email 115176513@qq.com
 * @description: TODO
 */
@RestController
@RequestMapping("supplier")
public class SupplierController {
    @Autowired
    private SupplierService service;
    @GetMapping
    public List<Supplier> query(){
        List<Supplier> list = service.list();
        return list;
    }
}
